package com.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Student {
	/**
	 * 学生
	 */
	private Integer sid;//id
	private String sname;//名字
	private String password;//密码
	private String sno;//学号
	private String sex;//性别
	private String phone;//电话
	private String school;//学校
	private String education;//学历
	private String major;//专业
	private String grade;//年级
	private String sclass;//班级
	private String dormitory;//宿舍楼
	private String dno;//宿舍号
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date registertime;//注册时间
	
	
	public Student(Integer sid, String sname, String password, String sno, String sex, String phone, String school,
			String education, String major, String grade, String sclass, String dormitory, String dno,
			Date registertime) {
		super();
		this.sid = sid;
		this.sname = sname;
		this.password = password;
		this.sno = sno;
		this.sex = sex;
		this.phone = phone;
		this.school = school;
		this.education = education;
		this.major = major;
		this.grade = grade;
		this.sclass = sclass;
		this.dormitory = dormitory;
		this.dno = dno;
		this.registertime = registertime;
	}
	
	public Student(String sname, String password) {
		super();
		this.sname = sname;
		this.password = password;
	}
	
	public Student() {
		super();
	}
	
	public Integer getSid() {
		return sid;
	}
	public void setSid(Integer sid) {
		this.sid = sid;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSno() {
		return sno;
	}
	public void setSno(String sno) {
		this.sno = sno;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	public String getEducation() {
		return education;
	}
	public void setEducation(String education) {
		this.education = education;
	}
	public String getMajor() {
		return major;
	}
	public void setMajor(String major) {
		this.major = major;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public String getSclass() {
		return sclass;
	}
	public void setSclass(String sclass) {
		this.sclass = sclass;
	}
	public String getDormitory() {
		return dormitory;
	}
	public void setDormitory(String dormitory) {
		this.dormitory = dormitory;
	}
	public String getDno() {
		return dno;
	}
	public void setDno(String dno) {
		this.dno = dno;
	}
	public Date getRegistertime() {
		return registertime;
	}
	public void setRegistertime(Date registertime) {
		this.registertime = registertime;
	}
	
	@Override
	public String toString() {
		return "Student [sid=" + sid + ", sname=" + sname + ", password=" + password + ", sno=" + sno + ", sex=" + sex
				+ ", phone=" + phone + ", school=" + school + ", education=" + education + ", major=" + major
				+ ", grade=" + grade + ", sclass=" + sclass + ", dormitory=" + dormitory + ", dno=" + dno
				+ ", registertime=" + registertime + "]";
	}
	
	
}
